package com.xiaozhen.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaozhen.blog.entity.Blog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @create 2023-04-21 13:13
 */
public interface BlogMapper extends BaseMapper<Blog> {
    /**
     * 获取博客的发布时间是在哪一年
     * @return
     */
    List<String> getYears();

    /**
     * 通过模糊查询查询对应的博客信息
     * @return
     */
    List<Blog> selectListByYear(@Param("year") String year);

}

